// Code generated by ent, DO NOT EDIT.

package ent

import (
	"server/components/models/ent/forecast"
	"server/components/models/ent/schema"
	"server/components/models/ent/weather"
)

// The init function reads all schema descriptors with runtime code
// (default values, validators, hooks and policies) and stitches it
// to their package variables.
func init() {
	forecastFields := schema.Forecast{}.Fields()
	_ = forecastFields
	// forecastDescWindSpeed is the schema descriptor for windSpeed field.
	forecastDescWindSpeed := forecastFields[2].Descriptor()
	// forecast.WindSpeedValidator is a validator for the "windSpeed" field. It is called by the builders before save.
	forecast.WindSpeedValidator = forecastDescWindSpeed.Validators[0].(func(float64) error)
	// forecastDescPrecipitationAmount is the schema descriptor for precipitationAmount field.
	forecastDescPrecipitationAmount := forecastFields[3].Descriptor()
	// forecast.PrecipitationAmountValidator is a validator for the "precipitationAmount" field. It is called by the builders before save.
	forecast.PrecipitationAmountValidator = forecastDescPrecipitationAmount.Validators[0].(func(float64) error)
	weatherFields := schema.Weather{}.Fields()
	_ = weatherFields
	// weatherDescHumidity is the schema descriptor for humidity field.
	weatherDescHumidity := weatherFields[2].Descriptor()
	// weather.HumidityValidator is a validator for the "humidity" field. It is called by the builders before save.
	weather.HumidityValidator = weatherDescHumidity.Validators[0].(func(float64) error)
	// weatherDescWindSpeed is the schema descriptor for windSpeed field.
	weatherDescWindSpeed := weatherFields[3].Descriptor()
	// weather.DefaultWindSpeed holds the default value on creation for the windSpeed field.
	weather.DefaultWindSpeed = weatherDescWindSpeed.Default.(float64)
	// weather.WindSpeedValidator is a validator for the "windSpeed" field. It is called by the builders before save.
	weather.WindSpeedValidator = weatherDescWindSpeed.Validators[0].(func(float64) error)
	// weatherDescPrecipitationAmount is the schema descriptor for precipitationAmount field.
	weatherDescPrecipitationAmount := weatherFields[5].Descriptor()
	// weather.DefaultPrecipitationAmount holds the default value on creation for the precipitationAmount field.
	weather.DefaultPrecipitationAmount = weatherDescPrecipitationAmount.Default.(float64)
	// weather.PrecipitationAmountValidator is a validator for the "precipitationAmount" field. It is called by the builders before save.
	weather.PrecipitationAmountValidator = weatherDescPrecipitationAmount.Validators[0].(func(float64) error)
}
